import { agencyHttp as http } from '@/services/http';
import type { ListResult, Limit } from '@/types/api/common';
import type { ColonelOrderListParamsDTO, ColonelOrderRemarkParamsDTO } from '@/types/api/crm-agency/colonel';
// 代理列表
export const getColonelOrderList = (payload: { data: ColonelOrderListParamsDTO; params: Limit }) =>
  http<ListResult<any>>({
    method: 'post',
    url: '/api/colonelorder/list',
    ...payload
  });
// 代理订单 编辑备注
export const colonelOrderRemark = (data: ColonelOrderRemarkParamsDTO) =>
  http({
    method: 'post',
    url: '/api/colonelorder/remark',
    data
  });
